package cn.rengy.auth.token;


public class JwtToken extends AbstractAuthenticationToken {

	private static final long serialVersionUID = 1L;
	
	private String jwt;           //json web token值

	public JwtToken(String jwt) {
		this.jwt = jwt;
	}
	public JwtToken(String jwt,String userAgent, String clientIp) {
		super(userAgent,clientIp);
		this.jwt = jwt;
	}
	public String getJwt() {
		return jwt;
	}

	public void setJwt(String jwt) {
		this.jwt = jwt;
	}

	@Override
	public Object getPrincipal() {
		return jwt;
	}

	@Override
	public Object getCredentials() {
		return jwt;
	}

    
}
